package com.groupbuying.orderproducer.service;

import com.groupbuying.orderproducer.utils.apiresult.ApiResult;

import java.util.Map;

/**
 * 优店商品订单业务
 * @author m
 */
public interface CommodityOrderUshopService {

    /**
     *  创建商品订单
     */
    ApiResult crateCommodityOrderService(Map<String,Object> param);


    /**
     *  根据商品id查询订单
     */
    Map<String,?> getGoodByOrderId(String orderId);

    /**
     * 修改商品子订单状态
     * @param param map参数
     * @return
     */
    ApiResult changeCommodityItemOrderStateService(Map<String,?> param);

    /**
     * 修改商品主订单状态
     * @param param map参数
     * @return
     */
    ApiResult changeCommodityMainOrderStateService(Map<String, ?> param);


}
